package xj.config;


import com.jfinal.config.Routes;

import xj.controller.backstage.BIndexController;
import xj.controller.backstage.LoginController;
import xj.interceptor.AdminAuthInterceptor;

/**
 * 配置后台访问映射路径
 * 
 * @author zhangxudong
 *
 */
public class AdminRoutes extends Routes {
	
	@Override
	public void config() {
		// routes级别拦截器
		addInterceptor(new AdminAuthInterceptor());
		
		add("/", LoginController.class, "pages/backstage"); // 后台登录页面
		add("/bindex", BIndexController.class, "pages/backstage"); // 登录后主页

	}
}
